package com.roc.dao.agent;

import java.util.List;

import com.roc.dao.DaoException;
import com.roc.dao.IBaseDao;
import com.roc.pojo.Operators;
import com.roc.pojo.ProfitPercent;
import com.roc.pojo.ProfitRule;

/**
 * @author chenkai 
 * @date 2014-08-10
 * 代理商操作
 * */
public interface IAgentInfoDao extends IBaseDao {

	//查询代理商分润规则
	List<ProfitRule> queryProfitRule(String id) throws DaoException;
	
	//查询代理商对象
	Operators queryOperatorInfo(String accountNo) throws DaoException;
	
	//查询代理商对象
	Operators loadOperatorsById(Long id) throws DaoException;
	
	public void deleteProfitRuleByAgentId(String agentId)  throws DaoException;
	
	/**
	 * 查询代理商的分润比例
	 * @param agentId
	 * @return
	 * @throws DaoException
	 */
	public List<ProfitPercent> queryProfitPer(String agentId) throws DaoException;

	
	/**
	 * 通过代理商id删除代理商的分润比例
	 * @param agentId
	 * @return
	 * @throws DaoException
	 */
	public void deleteProfitPerByAgentId(String agentId) throws DaoException;
	
	/**
	 * 通过代理商id删除代理商
	 * @param agentId
	 * @param accountNo
	 * @throws DaoException
	 */
	public void deleteAgentMer(long agentId, String accountNo) throws DaoException;
	
	/**
	 * 通过类别查询黑名单信息 
	 * @param blackType 类别
	 * @param blackNum  (1)P：手机号 / (2)D：法人身份证 / (4)C： 卡号
	 * @return 
	 * @throws DaoException
	 */
	int selectBlackInfoByType(String blackType,String blackNum) throws DaoException;
	
}
